package com.fjec.market.feign.fallback;

import com.fjec.common.enums.EnumSysCode;
import com.fjec.common.exception.BizException;
import com.fjec.market.feign.UserClient;

import java.util.Map;

public class UserClientFallback implements UserClient {

    @Override
    public String saveUserRole(Long userId, String roleCode) {
        throw new BizException(EnumSysCode.ERR_3001.getCode(), EnumSysCode.ERR_3001.getMsg());
    }

    @Override
    public int updateUserPhone(Long userId, String phone) {
        throw new BizException(EnumSysCode.ERR_3001.getCode(), EnumSysCode.ERR_3001.getMsg());
    }

    @Override
    public Map<String, Object> getUnReadNum(Long userId) {
        throw new BizException(EnumSysCode.ERR_3001.getCode(), EnumSysCode.ERR_3001.getMsg());
    }

    @Override
    public boolean existsPhone(String phone) {
        throw new BizException(EnumSysCode.ERR_3001.getCode(), EnumSysCode.ERR_3001.getMsg());
    }

    @Override
    public int updateUserInfoForCreateShop(Map<String, Object> dataMap) {
        throw new BizException(EnumSysCode.ERR_3001.getCode(), EnumSysCode.ERR_3001.getMsg());
    }

    @Override
    public Map<String, Object> getOpenIdByUserId(Long userId) {
        throw new BizException(EnumSysCode.ERR_3001.getCode(), EnumSysCode.ERR_3001.getMsg());
    }
}
